package com.carrot.gateway.filter.handler.auth;

import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * 认证校验器
 */
public interface IAuthHandler {

    /**
     * 认证校验
     * @param exchange
     * @param chain
     * @param serviceName
     * @return
     */
    Mono<Void> authCheck(ServerWebExchange exchange, GatewayFilterChain chain, String serviceName);

}
